package com.market.service;

import com.market.dto.OrderDetailDto;
import com.market.entity.OrderDetail;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单详情
 */

public interface OrderDetailService {
    //增加订单详情记录
    boolean addOrderDetail(OrderDetail orderDetail);

    //详情id查询订单详情
    OrderDetail queryOrderDetail(int orderDetailId);

    //订单id查询订单详情
    List<OrderDetail> queryOrderDetailByOrderId(int orderId);

    //订单id查询订单详情
    List<OrderDetailDto>queryOrderDetailsByOrderIdDto(int orderId);

    //查询某个商品当日的购买量
    int GoodsAllBuyAmount(int goodsId, String payTime);
}
